<%-- 
    Document   : Partificate
    Created on : 2012-12-8, 0:01:02
    Author     : Timmy
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<c:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
        <link href="<c:url value="/css/jquery-ui-1.9.2.custom.min.css" />" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<c:url value="/scripts/jquery.js" />" ></script>
        <script type="text/javascript" src="<c:url value="/scripts/jquery-ui-1.9.2.custom.min.js" />" ></script>
    </head>
    <body>
        <h2>Conference : <s:property value="conferenceName" /></h2>
        <h2>Partificates :</h2>
        <table class="borderAll">
            <tr>
                <th>User Name</th>
                <th>Pay Price</th>
                <th>Register Date</th>
                <th>Payment Status</th>
            </tr>
            <s:iterator value="participantList">
                <tr>
                    <td>
                        <a href="../usermgmt/editUser_<s:property value="id.getUserName()" />">   <s:property value="id.getUserName()" /> </a>
                    </td>
                    <td>
                        <s:property value="price" />
                    </td>   
                    <td>
                        <s:date name="registerDate" format="MM/dd/yyyy" />
                    </td>
                    <td>
                        <s:if test="status == 0">
                            Booked
                        </s:if>
                        <s:elseif test="status == 1">
                            Pending
                        </s:elseif>
                        <s:else>
                            Approved
                        </s:else>
                    </td>
                </tr>
            </s:iterator>
        </table>
    </body>
</html>
